
namespace SharpTalk.Core.Services
{
    using System;
    using Diagnostic;
    using Enums;

    /// <summary>
    /// 
    /// </summary>
    public sealed class ChatRoomService : Traceable
    {
        /// <summary>
        /// Obtain the default public Chatroom single instance
        /// </summary>
        [field: NonSerialized] internal static readonly ChatRoom Default = new ChatRoom(Guid.Empty)
                                                                                   {
                                                                                       Name  = Resources.Messages.chatroom_name_public,
                                                                                       Owner = UserService.SystemUser.Guid,
                                                                                       Type  = ChatRoomTypeEnum.Public,
                                                                                       IsDefault = true
                                                                                   };
        /// <summary>
        /// Obtains the default public chatroom single instance
        /// </summary>
        public static ChatRoom GetDefaultChatRoom()
        {
            return Default;
        }
        
    }
}